#ifndef __DAP_HARDWARE_H
#define __DAP_HARDWARE_H
#include "DAP_global.h"

//Bit_band
#define LEDRUN GPIO_OUT_Band(LED_RUNNING_PORT,LED_RUNNING_PIN)
#define LEDCON GPIO_OUT_Band(LED_CONNECTED_PORT,LED_CONNECTED_PIN)


#define LedConnectedOn() LEDCON=0
#define LedConnectedOff() LEDCON=1
#define LedConnectedToggle() LEDCON=!LEDCON
#define LedRunningOn() LEDRUN=0
#define LedRunningOff() LEDRUN=1
#define LedRunningToggle() LEDRUN=!LEDRUN


void Led_Connected(uint16_t bit);
void Led_Running(uint16_t bit);

void BoardInit(void);
#endif
